package com.yang.mall.exception;

/**
 * Created by chijr on 16/11/5.
 */
public class RemoteServiceException extends Exception {
    private int status;
    private String message;

    public RemoteServiceException(int status, String message) {

        this.status = status;
        this.message = message;

    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {

        return this.status;
    }
}
